package com.rd.student.dashuju.wangbo.demo2;

public class Flower {
    private String colour;
    private int price;

    public void setColour(String colour) {
        this.colour = colour;
    }

    public String getColour() {
        return colour;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getPrice() {
        return price;
    }
    public Flower(){}
    public Flower(String colour,int price){
        this.colour = colour;
        this.price = price;
    }
    public void showInFo(){
        System.out.println("显示详细信息");
    }
}